<template>
	<view class="">
		<view class="head-title">
			<image :src="$util.img('upload/uniapp/live/del_left.png')" mode="" style="width: 22rpx; height: 22rpx;"></image>
			<text>添加商品</text>
		</view>
		<view class="">
			<view class="border-bottom" style=""  v-for="(shopitem, index) in shoplist" :key="index">
				<image :src="$util.img('upload/uniapp/live/no.png')" mode="aspectFit" style="width: 35rpx; height: 35rpx;"></image>
				<!-- <image :src="$util.img('upload/uniapp/live/yes.png')" mode="aspectFit" style="width: 154rpx; height: 154rpx; margin-left: 26rpx; margin-right: 27rpx;"></image> -->
				<image src="http://qiniu.tanyou.niuteam.cn/upload/473/common/images/20210115/20210115043006161069940615177_mid.gif" mode="aspectFit" style="width: 154rpx; height: 154rpx; margin-left: 26rpx; margin-right: 27rpx;"></image>
				<view class="item-text " style="display: flex; flex-direction: column; justify-content: space-between;">
					<text>{{shopitem.sku_name}}</text>
					<view class="text-color ">
						<text class="text-border">{{shopitem.unit}}</text>
					</view>
					<view class="">
						<text class="text-color " style="margin-right: 20rpx;">{{shopitem.unit}}</text>
						<text class="text-color">{{shopitem.price}}</text>
					</view>
				</view>
			</view>
		</view>
		<view class="footer">
			<image :src="$util.img('upload/uniapp/live/no.png')" mode="aspectFit" style="width: 35rpx; height: 35rpx;"></image>
		</view>
	</view>
</template>

<script>
	export default {
		components: {
			
		},
		data() {
			return {
				textarea:'',
				shoplist:[
					{
						sku_name:'家用简约书桌椅学生写字椅',
						goods_id:111,
						price:"99.99",
						unit:'全余额'
					},
					{
						sku_name:'简约舒适书桌椅卧室凳子靠背椅子',
						goods_id:222,
						price:"100.00",
						unit:'全积分'
					}
				]
			}
		},
		onLoad(option) {
			
		},
		mounted() {},
		onUnload() {
			
			
		},
		onShow() {
		},
		
		methods: {
		
		},
		computed:{
			
		}
			
	}
</script>

<style lang="scss" scoped>
	.footer{
		position: fixed;
		bottom: 0;
		height: 100rpx;
		background: #FFFFFF;
		border: 0rpx solid #FFFFFF;
		box-shadow: 0rpx 5rpx 20rpx 0rpx #F5F5F5;

	}
	.border-bottom{
		margin: 20rpx 32rpx; 
		display: flex;
		align-items: center;
		padding-bottom: 20rpx;
		border-bottom: 2rpx solid #EFEFEF;
	}
	.head-title{
		box-sizing: border-box;
		padding: 69rpx 37rpx 0 37rpx;
		text{
			position: absolute;
			left: 50%;
			transform: translate(-50%);
			text-align: center;
			font-size: 34rpx;
			color: #303133;
			line-height: 34rpx;
		}
		
		.item-text{
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			border-bottom: 2rpx solid red;
			text{
				font-size: 28rpx;
				color: #333333;
			}
			
		}
		
	}
	.text-color{
		color: #FF4544!important;
	}
	.text-border{
		display: inline-block;
		box-sizing: border-box;
		padding: 4rpx 6rpx;
		font-size: 24rpx!important;
		line-height: 24rpx;
		border: 2rpx solid #FF4544;
		border-color: rgba(255, 69, 68, 0.2) !important;
		border-radius: 4rpx;
	}
</style>
